package com.minelx.datamicroscope.querylanguage.data.content;

import com.alibaba.fastjson.JSONObject;

import java.util.List;

public interface Content {
    List<JSONObject> toJSON();

    static Content create(String contentAsText) {
        return new SingleContent(contentAsText);
    }

    static Content list(List<Content> contents) {
        return new ListedContent(contents);
    }
}
